package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.RoutinePathologyBm;
import com.zhijian.medical.entity.vo.request.RoutinePathologyBmSearchVo;
import com.zhijian.medical.entity.vo.response.RoutinePathologyBmVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoutinePathologyBmMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RoutinePathologyBm record);

    int insertSelective(RoutinePathologyBm record);

    RoutinePathologyBm selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RoutinePathologyBm record);

    int updateByPrimaryKey(RoutinePathologyBm record);

    /**
     * 查询总数
     *
     * @param routinePathologyBmSearchVo
     * @return
     */
    int count(RoutinePathologyBmSearchVo routinePathologyBmSearchVo);

    /**
     * 查询列表
     *
     * @param routinePathologyBmSearchVo
     * @return
     */
    List<RoutinePathologyBmVo> selectList(RoutinePathologyBmSearchVo routinePathologyBmSearchVo);

    /**
     * 查询单个
     *
     * @param routinePathologyBmSearchVo
     * @return
     */
    RoutinePathologyBmVo selectOne(RoutinePathologyBmSearchVo routinePathologyBmSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    RoutinePathologyBmVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param routinePathologyBmSearchVo
     * @return
     */
    void deleteByCondition(RoutinePathologyBmSearchVo routinePathologyBmSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<RoutinePathologyBm> entities);

    /**
     * 根据SampleId查询列表
     *
     * @param sampleId
     * @return
     */
    List<RoutinePathologyBmVo> selectListBySampleId(Long sampleId);
}